lib/repo-refs: Add ostree_repo_remote_list_collection_refs() API
authorPhilip Withnall <withnall@endlessm.com>
Mon, 7 Aug 2017 18:52:17 +0000 (19:52 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 8 Aug 2017 13:59:58 +0000 (13:59 +0000)
commitf35b409077dc7881e6e1a8d59bb709226e0d93c6
tree438fa8a425cbbfe3a59c86bf82d76de12441191b
parent11e165b154bbf35915eaea62bf36e4cd30acb1c1
lib/repo-refs: Add ostree_repo_remote_list_collection_refs() API

This parallels ostree_repo_remote_list_refs(), but returns a map of
OstreeCollectionRef → checksum, and includes refs from collection IDs
other than the remote repository’s main collection ID.

Use this in OstreeRepoFinderConfig to ensure that refs are matched
against even if they’re stored in the repository summary file’s
collection map, rather than its main ref map. This fixes false negatives
when searching for refs in some situations.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1058
Approved by: cgwalters
apidoc/ostree-experimental-sections.txt
src/libostree/libostree-experimental.sym
src/libostree/ostree-repo-finder-config.c
src/libostree/ostree-repo-refs.c
src/libostree/ostree-repo.h